import 'package:fish_redux/fish_redux.dart';
import '../model/account_model.dart';
import 'package:kunlun_gas/app_files.dart';

class GasChargeViewState implements Cloneable<GasChargeViewState> {
  GasAccountModel model;
  TextEditingController moneyController = TextEditingController();
  String bluetoothNo;
  @override
  GasChargeViewState clone() {
    return GasChargeViewState()
      ..model = model
      ..bluetoothNo = bluetoothNo
      ..moneyController = moneyController;
  }

  String get bluetoothInfo => bluetoothNo ?? model.bluetoothNo;
}

GasChargeViewState initState(Map<String, dynamic> args) {
  return GasChargeViewState()..model = args['model'];
}
